import { get, post, BASE } from "./http";
import axios from "axios";
import store from "../store";
const carts = axios.create({});
// 会员信息
export const getUserInfo = () => get("/member/info");
// 奖金和赔率
export const bonusOdd = () => get("/get/bonus_odds");
// 获取开奖号码
export const winNumber = () => get("/winning/number");
// 号码篮子下注
// export const numbersCart = params => instance.post('/official/number/basket', params);
export const numbersCart = params =>
  carts({
    url: `${BASE}/official/number/basket`,
    method: "post",
    headers: {
      token: store.state.token
    },
    data: params
  }).then(res => res);
// 五星直选复式
export const starDirectDuplex = params => post("/star/direct/duplex", params);
// 五星直选组合
export const starDirectCombination = params =>
  post("/star/direct/combination", params);
// 五星直选单式
export const starDirectSingle = params => post("/star/direct/single", params);
// 趣味一帆风顺
export const funSmoothSail = params => post("/fun/good/things", params);
// 趣味好事成双
export const funGoodThings = params => post('/fun/good/things', params);
// 趣味三星报喜
export const funThreeHappy = params => post('/fun/three/happy', params);
// 趣味四季发财
export const funFourFortune = params => post('/fun/four/fortune', params);
// 前三直选复式
export const topThreeDirectDuplex = params => post('/top_three/direct/duplex', params);
// 前三直选单式
export const topThreeDirectSingle = params => post('/top_three/direct/single', params);
// 前三直选和值
export const topThreeDirectSum = params => post('/top_three/direct/sum', params);
// 中三直选复式
export const middleThreeDirectDuplex = params => post('/middle_three/direct/duplex', params);
// 中三直选单式
export const middleThreeDirectSingle = params => post('/middle_three/direct/single', params);
// 中三直选和值
export const middleThreeDirectSum = params => post('/middle_three/direct/sum', params);
// 后三直选复式
export const laterThreeDirectDuplex = params => post('/later_three/direct/duplex', params);
// 后三直选单式
export const laterThreeDirectSingle = params => post('/later_three/direct/single', params);
// 后三直选和值
export const laterThreeDirectSum = params => post('/later_three/direct/sum', params);
// 全5中1
export const creditFive = params => post('/credit/five', params);
// 信用玩法确认选号
export const creditNumberBasket = params => post('/credit/number/basket', params);
// 龙虎斗
export const creditBattle = params => post('/credit/battle', params);
// 整合
export const creditTidy = params => post('/credit/tidy', params);
// 发送短信
export const sendSms = params => post('/register/send/sms', params);
// 忘记密码
export const forgetSendSms = params => post('/rest/send/sms', params);
// 修改密码的发送短信
export const forgetSendSmss = params => post('/member/send/sms', params);
